/*
 *
 *      Copyright (c) 2018-2025, st All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the pig4cloud.com developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: st
 *
 */

package com.mkh.st.common.core.constant;

/**
 * @author st
 * @date 2017/10/29
 */
public interface CommonConstants {

	/**
	 * header 中租户ID
	 */
	String TENANT_ID = "TENANT-ID";

	/**
	 * header 中版本信息
	 */
	String VERSION = "VERSION";

	/**
	 * 租户ID
	 */
//	Integer TENANT_ID_1 = 1;
	Long TENANT_ID_1 = 0L;

	/**
	 * 删除
	 */
	String STATUS_DEL = "1";

	/**
	 * 正常
	 */
	String STATUS_NORMAL = "0";

	/**
	 * 锁定
	 */
	String STATUS_LOCK = "1";

	/**
	 * 菜单树根节点
	 */
	Long MENU_TREE_ROOT_ID = -1L;

	/**
	 * 编码
	 */
	String UTF8 = "UTF-8";

	/**
	 * 前端工程名
	 */
	String FRONT_END_PROJECT = "st-ui";

	/**
	 * 后端工程名
	 */
	String BACK_END_PROJECT = "st";

	/**
	 * 公共参数
	 */
	String PIG_PUBLIC_PARAM_KEY = "PIG_PUBLIC_PARAM_KEY";

	/**
	 * 成功标记
	 */
	Integer SUCCESS = 0;

	/**
	 * 失败标记
	 */
	Integer FAIL = 1;

	/**
	 * 默认存储bucket
	 */
	String BUCKET_NAME = "st";

	/**
	 * 滑块验证码
	 */
	String IMAGE_CODE_TYPE = "blockPuzzle";

	/**
	 * 验证码开关
	 */
	String CAPTCHA_FLAG = "captcha_flag";

	/**
	 * 密码传输是否加密
	 */
	String ENC_FLAG = "enc_flag";

	/**
	 * 未删除标记
	 */
	Integer NOT_DEL=0;

	/**
	 * 常量0
	 */
	Integer ZERO = 0;

	/**
	 * 常量1
	 */
	Integer ONE = 1;

	/**
	 * 常量2
	 */
	Integer TWO = 2;

	/**
	 * 常量3
	 */
	Integer THREE = 3;

	/**
	 * 常量4
	 */
	Integer FOUR = 4;

	/**
	 * 常量5
	 */
	Integer FIVE = 5;

	/**
	 * 分隔符
	 */
	String SPLIT = "/";

	/**
	 * 登录方式
	 */
	String LOGIN_TYPE="password";

	/**
	 * 密码失败次数key后缀
	 */
	String PASSWORD_ERROR_COUNT="_error_count";

	/**
	 * 密码失败最大次数
	 */
	Integer MAX_ERROR_COUNT =4;
	/**
	 * 公司编码前缀
	 */
	String COMPANY_CODE ="COPR";
	/**
	 * 子站点编码前缀
	 */
	String SITE_CODE ="SITE";

	/**
	 * 默认密码
	 */
	String DEFAULT_PASSWORD ="mkh888888";

}
